<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>OSEMainWindow.OSEMainWindow</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="www.OSEKits.org">OSEkits Experiment Control Software</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="OSEMainWindow-module.html">Module&nbsp;OSEMainWindow</a> ::
        Class&nbsp;OSEMainWindow
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="OSEMainWindow.OSEMainWindow-class.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class OSEMainWindow</h1><p class="nomargin-top"><span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow">source&nbsp;code</a></span></p>
<pre class="literalblock">

Class: OSEMainWindow

Description:
    This class is the main controlling class for the OSEkits Experiment Control Software.
    All main functionality and control is handled by this class.

</pre>

<!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Instance Methods</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-InstanceMethods"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="__init__"></a><span class="summary-sig-name">__init__</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Constructor</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow.__init__">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="OSEMainWindow.OSEMainWindow-class.html#_measurement_handling" class="summary-sig-name" onclick="show_private();">_measurement_handling</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Function: _measurement_handling</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._measurement_handling">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="OSEMainWindow.OSEMainWindow-class.html#_measurement_timing_thread" class="summary-sig-name" onclick="show_private();">_measurement_timing_thread</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Function: _measurement_timing_thread</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._measurement_timing_thread">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="OSEMainWindow.OSEMainWindow-class.html#_startMeasurement" class="summary-sig-name" onclick="show_private();">_startMeasurement</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Function: _startMeasurement</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._startMeasurement">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="OSEMainWindow.OSEMainWindow-class.html#_stopMeasurement" class="summary-sig-name" onclick="show_private();">_stopMeasurement</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Function: _stopMeasurement</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._stopMeasurement">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="OSEMainWindow.OSEMainWindow-class.html#_microControllerSettings" class="summary-sig-name" onclick="show_private();">_microControllerSettings</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Function: _microControllerSettings</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._microControllerSettings">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="OSEMainWindow.OSEMainWindow-class.html#_terminate" class="summary-sig-name" onclick="show_private();">_terminate</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Function: _terminate</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._terminate">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="OSEMainWindow.OSEMainWindow-class.html#_aboutDisplay" class="summary-sig-name" onclick="show_private();">_aboutDisplay</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Function: _aboutDisplay</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._aboutDisplay">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="OSEMainWindow.OSEMainWindow-class.html#_connectMicro" class="summary-sig-name" onclick="show_private();">_connectMicro</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Function: _connectMicro</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._connectMicro">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="OSEMainWindow.OSEMainWindow-class.html#_disconnectMicro" class="summary-sig-name" onclick="show_private();">_disconnectMicro</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Function: _disconnectMicro</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._disconnectMicro">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="OSEMainWindow.OSEMainWindow-class.html#_get_file_path_csv" class="summary-sig-name" onclick="show_private();">_get_file_path_csv</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Function: _get_file_path_csv</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._get_file_path_csv">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="OSEMainWindow.OSEMainWindow-class.html#_get_file_path_xml" class="summary-sig-name" onclick="show_private();">_get_file_path_xml</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Function: _get_file_path_xml</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._get_file_path_xml">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="OSEMainWindow.OSEMainWindow-class.html#_save_measurements_csv" class="summary-sig-name" onclick="show_private();">_save_measurements_csv</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Function: _save_measurements_csv</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._save_measurements_csv">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="OSEMainWindow.OSEMainWindow-class.html#_save_measurements_xml" class="summary-sig-name" onclick="show_private();">_save_measurements_xml</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Function: _save_measurements_xml</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._save_measurements_xml">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="OSEMainWindow.OSEMainWindow-class.html#_createMenus" class="summary-sig-name" onclick="show_private();">_createMenus</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Function: _createMenus</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._createMenus">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="OSEMainWindow.OSEMainWindow-class.html#_reconfigure_microcontroller" class="summary-sig-name" onclick="show_private();">_reconfigure_microcontroller</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Function: _reconfigure_microcontroller</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._reconfigure_microcontroller">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="OSEMainWindow.OSEMainWindow-class.html#_reconfigure_display" class="summary-sig-name" onclick="show_private();">_reconfigure_display</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">new_sensor_mode</span>)</span><br />
      Function: _reconfigure_display</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._reconfigure_display">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="OSEMainWindow.OSEMainWindow-class.html#_reconfigure_To_Thermocouple" class="summary-sig-name" onclick="show_private();">_reconfigure_To_Thermocouple</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Function: _reconfigure_To_Thermocouple</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._reconfigure_To_Thermocouple">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="OSEMainWindow.OSEMainWindow-class.html#_reconfigure_To_Encoder" class="summary-sig-name" onclick="show_private();">_reconfigure_To_Encoder</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Function: _reconfigure_To_Encoder</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._reconfigure_To_Encoder">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="OSEMainWindow.OSEMainWindow-class.html#_reconfigure_To_Photogate" class="summary-sig-name" onclick="show_private();">_reconfigure_To_Photogate</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Function: _reconfigure_To_Photogate</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._reconfigure_To_Photogate">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
</table>
<!-- ==================== CLASS VARIABLES ==================== -->
<a name="section-ClassVariables"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Class Variables</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-ClassVariables"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="root_window"></a><span class="summary-name">root_window</span> = <code title="Tk()">Tk()</code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="serialComs"></a><span class="summary-name">serialComs</span> = <code title="OSESerialComs()">OSESerialComs()</code>
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="__measurementFlag"></a><span class="summary-name">__measurementFlag</span> = <code title="2">2</code>
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="_measurementThread"></a><span class="summary-name">_measurementThread</span> = <code title="&lt;Thread(Thread-2, initial)&gt;">&lt;Thread(Thread-2, initial)&gt;</code>
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="_thermocouple"></a><span class="summary-name">_thermocouple</span> = <code title="OSEThermocouple()">OSEThermocouple()</code>
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="_encoder"></a><span class="summary-name">_encoder</span> = <code title="OSEEncoder()">OSEEncoder()</code>
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="_photogate"></a><span class="summary-name">_photogate</span> = <code title="OSEPhotogate()">OSEPhotogate()</code>
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="__sensorMode"></a><span class="summary-name">__sensorMode</span> = <code title="0">0</code>
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="_microcontoller_connected"></a><span class="summary-name">_microcontoller_connected</span> = <code title="0">0</code>
    </td>
  </tr>
</table>
<!-- ==================== METHOD DETAILS ==================== -->
<a name="section-MethodDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Method Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-MethodDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="_measurement_handling"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">_measurement_handling</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._measurement_handling">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

Function: _measurement_handling

Description:
    This function runs as a thread.
    _measurement_handling is started when the main process starts. Control of the thread is done
    with the __measurementFlag variable.  As long as it is greater than zero the thread keeps cycling
    in a while loop.  When __measurementFlag is equal to 1 the thread actively polls the serialComs object's
    isMeasurementValueReady function to check for new measurement data. If there is that data is handled, if
    not the thread keeps polling.  If __measurementFlag is equal to 3 this thread polls isMeasurementValueReady
    until it returns False. This is done to clear out any remaining measurements before returning to a wait
    state.
    
Returns:
    Nothing
    

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="_measurement_timing_thread"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">_measurement_timing_thread</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._measurement_timing_thread">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

Function: _measurement_timing_thread

Description:
    This function is run as a thread.  Control of the thread is handled by the __measurementFlag variable.
    If __measurementFlag is greater than zero this thread keeps running.
    If __measurementFlag is equal to 1 and __sensorMode is equal to a sensor that needs this thread then
        this thread sends a control packet out once every time period set by the class for that sensor mode.
    If __measurementFlag is anything else greater than zero it polls __measurementFlag

Returns:
    Nothing

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="_startMeasurement"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">_startMeasurement</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._startMeasurement">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

Function: _startMeasurement

Description:
    This function is called when an experiment is to be started.  It sends config and control packets to 
    the micro-controller telling it to start taking measurements.
    
Returns:
    Nothing

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="_stopMeasurement"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">_stopMeasurement</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._stopMeasurement">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

Function: _stopMeasurement

Description:
    This function is called to stop the system from taking measurements.  A control packet is sent to the
    micro-controller and all flags are set to put the system back into normal operation.

Returns:
    Nothing

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="_microControllerSettings"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">_microControllerSettings</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._microControllerSettings">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

Function: _microControllerSettings

Description:
    Creates a dialog for altering the settings for the communication with the
    Arduino Uno micro-controller.

Returns: 
    Nothing

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="_terminate"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">_terminate</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._terminate">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

Function: _terminate

Description:
    This function terminates the program in a safe manner.  Sends a stop control packet to
    the micro-controller and shuts down all threads running for the GUI.
    
Returns:
    Nothing

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="_aboutDisplay"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">_aboutDisplay</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._aboutDisplay">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

Function: _aboutDisplay

Description:
    Pops up a dialog window of class OSEAboutDialog, which displays the &quot;About&quot; 
    information for this program.

Returns:
    Nothing

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="_connectMicro"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">_connectMicro</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._connectMicro">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

Function: _connectMicro

Description:
    Initializes all serial communication and sends config packet to the micro-controller.

Returns:
    Nothing

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="_disconnectMicro"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">_disconnectMicro</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._disconnectMicro">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

Function: _disconnectMicro

Description:
    Shuts down all serial communications.
    
Returns:
    Nothing

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="_get_file_path_csv"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">_get_file_path_csv</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._get_file_path_csv">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

Function: _get_file_path_csv

Description:
    Brings up a file browsing dialog for .csv files.
    
Returns:
    file object that has been already opened

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="_get_file_path_xml"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">_get_file_path_xml</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._get_file_path_xml">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

Function: _get_file_path_xml

Description:
    Brings up a file browsing dialog for .xml files.
    
Returns:
    file object that has been already opened

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="_save_measurements_csv"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">_save_measurements_csv</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._save_measurements_csv">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

Function: _save_measurements_csv

Description:
    Called when measurement data from the last experiment done is to be saved as a csv file. 
    
Returns:
    Nothing

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="_save_measurements_xml"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">_save_measurements_xml</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._save_measurements_xml">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

Function: _save_measurements_xml

Description:
    Called when measurement data from the last experiment done is to be saved as a xml file. 
    
Returns:
    Nothing

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="_createMenus"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">_createMenus</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._createMenus">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

Function: _createMenus

Description:
    Private function to add the main menus to the top of the OSEKits application
    window.

Returns:
    Nothing

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="_reconfigure_microcontroller"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">_reconfigure_microcontroller</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._reconfigure_microcontroller">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

Function: _reconfigure_microcontroller

Description: 
    This function is called to send configuration data for the current sensor to the micro-controller.

Returns:
    string  &quot;success&quot; if no errors
            &quot;&lt;error message:&gt;&quot; otherwise
        

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="_reconfigure_display"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">_reconfigure_display</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">new_sensor_mode</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._reconfigure_display">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

Function: _reconfigure_display

Description:
    Called to switch the display from one sensor mode to another.
    
Returns:
    Nothing

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="_reconfigure_To_Thermocouple"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">_reconfigure_To_Thermocouple</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._reconfigure_To_Thermocouple">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

Function: _reconfigure_To_Thermocouple

Description:
    Configures the display and micro-controller to use the thermocouple.

Returns:
    Nothing

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="_reconfigure_To_Encoder"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">_reconfigure_To_Encoder</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._reconfigure_To_Encoder">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

Function: _reconfigure_To_Encoder

Description:
    Configures the display and micro-controller to use the Encoder.

Returns:
    Nothing

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="_reconfigure_To_Photogate"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">_reconfigure_To_Photogate</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="OSEMainWindow-pysrc.html#OSEMainWindow._reconfigure_To_Photogate">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <pre class="literalblock">

Function: _reconfigure_To_Photogate

Description:
    Configures the display and micro-controller to use the photogate.

Returns:
    Nothing

</pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="www.OSEKits.org">OSEkits Experiment Control Software</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Fri Jul 29 08:43:32 2011
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
